<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
</head>
<body>
    <script>
        var age = 10;
        console.log(age);//控制台输出
        
        document.write(age);//页面输出
        document.write("我是页面输出");

        alert("我是弹出框");//弹出框输出

    </script>
</body>
</html>